From e5279fb8bd0d5fa61b6c376996081b84723e2064 Mon Sep 17 00:00:00 2001 From: justbur Date: Wed, 8 Jul 2015 08:52:28 -0400 Subject: [PATCH] Revert unintended change to act-height calc --- which-key.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index f86248f1f0b..3af32b891c8 100644 --- a/which-key.el +++ b/which-key.el @@ -417,7 +417,7 @@ the maximum number of lines availabel in the target buffer." ;; not doing anything with other pages for now (setq pages (reverse pages) first-page (concat prefix-string (car pages)) - act-height (s-count-matches "\n" first-page)) + act-height (1+ (s-count-matches "\n" first-page))) ;; (when (> (length pages) 1) (setq first-page (concat first-page "..."))) (if (eq which-key-popup-type 'minibuffer) (let (message-log-max) (message "%s" first-page)) -- 2.30.2